@RestController
@RequestMapping("/api/${table.javaClassName}")
public class ${table.controllerClassName} {

    @Autowired
    private ${table.serviceClassName} ${table.servicePropertyName};

    @GetMapping("/{id}")
    @Operation(summary = "根据ID查询")
    public Result<${table.entityClassName}> getById(@PathVariable ${table.primaryKey.javaType} id) {
        return Result.success(${table.servicePropertyName}.getById(id));
    }
}